package com.huaxin.hxmoduleworkorder.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName(value = "inspection_order_cabinet", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
public class InspectionOrderCabinet extends BaseModel {

    @TableField(value = "order_id")
    @Schema(description = "工单ID", example = "order-01")
    private String orderId;

    @TableField(value = "cabinet_id")
    @Schema(description = "配电箱ID", example = "cabinet-01")
    private String cabinetId;

    @TableField(exist = false)
    @Schema(description = "配电箱编号", example = "01")
    private String cabinetCode;

    @TableField(exist = false)
    @Schema(description = "配电箱名称", example = "配电箱01")
    private String cabinetName;

    @TableField(exist = false)
    @Schema(description = "类型：进线柜、出线柜、电容补偿柜等", example = "出线柜")
    private String type;

    @TableField(exist = false)
    @Schema(description = "额定电流（A）", example = "630")
    private Integer ratedCurrent;

    @TableField(exist = false)
    @Schema(description = "母线材质", example = "铜")
    private String busbarMaterial;

    @TableField(exist = false)
    @Schema(description = "防护等级（IPXX）", example = "IP42")
    private String protectionLevel;

    @TableField(exist = false)
    @Schema(description = "安装位置", example = "配电室南墙")
    private String location;

    @TableField(exist = false)
    @Schema(description = "所属配电房ID", example = "r123e456-789a-bcde-f012-3456789abcde")
    private String roomId;
}
